<template>
  <div id="app">
    <warn-p :class='type'></warn-p>
    <div id="nav">
	  <router-link to="/edit0" @click.native="Aler()">简历编辑</router-link> |
      <router-link to="/">在线简历</router-link> |
      <router-link to="/about0"  @click.native="Aler()">简历预览</router-link>
    </div>
    <router-view/>
  </div>
</template>
<script>
import Warn from './components/warn.vue'
export default{
	name:'app',
	components:{
		"warn-p":Warn
	},
	data(){
		return{
			type:"hidden"
		}
	},
	methods:{
		Aler(){
			if(this.$store.state.resumes.length==0){
				this.type="show"
				setTimeout(()=>{
					this.type='hidden'
				},3000)
			}
		}
	}
}
</script>
<style lang="less">
	*{
		margin: 0;
		padding: 0;
		list-style: none;
	}
	body,html{
		height: 90wh;
		background-color: #f7f7f7;
		padding-bottom: 20px;
	}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
#nav {
  padding: 20px;
  a {
    font-weight: bold;
    color: #2c3e50;
	text-decoration: none;
    &.router-link-exact-active {
      color: #378aff;
    }
  }
}
</style>
